package bma.shop.dao.hibernate;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import bma.shop.dao.OrderDao;
import bma.shop.domain.Order;

public class HibernateOrderDao extends HibernateDaoSupport implements OrderDao {

	public Order saveOrder(Order o) {
		getHibernateTemplate().save(o);
		return o;
	}

	public Order loadOrder(long id) {
		return getHibernateTemplate().get(Order.class, Long.valueOf(id));
	}

}
